import { useState } from "react";
import "./App.css";
import Chiled from "./compontens/Chiled";
function App() {
  const [count, setCount] = useState(0);
  return (
    <>
      <div className="card">
        <button onClick={() => setCount((count) => count + 1)}>
          count is {count}
        </button>
        <span>定时器</span>
        <Chiled name='李白' number={count}/>
        <button onClick={() => setCount((count) => count - 1)}>
          count is {count}
        </button>
      </div>
    </>
  );
}

export default App;
